package com.zzld.modules.autoinn.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.abel533.entity.Example;
import com.github.abel533.entity.Example.Criteria;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zzld.core.service.BaseServiceImpl;
import com.zzld.modules.autoinn.entity.Facilitator;
import com.zzld.modules.autoinn.mapper.FacilitatorMapper;
import com.zzld.modules.autoinn.service.IFacilitatorService;

@Service("facilitatorService")
public class FacilitatorServiceImpl extends BaseServiceImpl<Facilitator> implements IFacilitatorService {

	@Autowired
	private FacilitatorMapper facilitatorMapper;

	@Override
	public PageInfo list(Map<String, Object> map, int pageNum, int pageSize) {
		// TODO 自动生成的方法存根
		PageHelper.startPage(pageNum, pageSize);
		List<Facilitator> list = facilitatorMapper.selectbypage(map);

		PageInfo page = new PageInfo(list);
		
		return page;
        
	}
}
